﻿Public Class EditHV
    Inherits DataProvider

    Public Function save(ByVal dto As DTO.EditHV) As Integer
        Dim sql = "UPDATE HangVe SET Ten='" + dto.tenhv + "',GhiChu='" + dto.ghichu + "' WHERE ID=" + dto.mahv.ToString
        Return Me.SaveData(sql)
    End Function

    Public Function dtload(ByVal mahk As Integer) As DataSet
        Dim sql As String = "SELECT * FROM HangVe WHERE ID=" + mahk.ToString
        Return GetDT(sql)
    End Function
End Class
